<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			let json = {"a":12,"b":"ghaha"};
			console.log(JSON.stringify(json));
			let str = '{"a":12,"b":5,"c":"abc"}';
			console.log(JSON.parse(str));
			//json简写
			let c = 5,d = 6;
			let simple = {c,d,e:12};
			console.log(simple);
			let fun = {
				a:12,
				show(){
					alert(this.a);
				}
			}
			fun.show();
		</script>
	</head>
	<body>
	</body>
</html>
